package sqcon.sql;

public enum ComparisonOperator {
	EQUAL ("="), 
	LESS ("<"), 
	LEQ ("<="), 
	GEQ (">="),  
	GREATER (">"), 
	IN ("IN"), 
	EXISTS ("EXISTS");
	
	private final String stringRep;
	ComparisonOperator(String strRep){
		this.stringRep = strRep;
	}
	
	public String printString(){
		return stringRep;
	}
	
	public static String[] getOperatorStringArray(){
		int idx = 0;
		ComparisonOperator[] allOperators = ComparisonOperator.values();
		String[] retStrArray = new String[allOperators.length];
		for(ComparisonOperator co : allOperators){
			retStrArray[idx] = co.printString();
			idx++;
		}
		
		return retStrArray;
	}
}
